//
//  ViewController.m
//  StatusBarHUD
//
//  Created by 罗壮燊 on 16/6/17.
//  Copyright © 2016年 lzs. All rights reserved.
//

#import "ViewController.h"
#import "MLStatusBarHUD.h"
#import "RedViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    __weak typeof(self) weakSelf = self;
    [MLStatusBarHUD showText:@"哈哈哈" imageName:@"AppIcon40x40" clickOperation:^{
        UIViewController *vc = [[RedViewController alloc] init];
        vc.view.backgroundColor = [UIColor redColor];
        [weakSelf presentViewController:vc animated:YES completion:nil];
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
